package com.qin.mall.openfeign;

import com.qin.mall.common.api.CommonResult;
//import com.qin.mall.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author Leisure
 * create 2022 2022/11/16 11:06
 **/
@FeignClient("mall-auth")
public interface AuthService {
    
    @PostMapping(value = "/oauth/token")
    CommonResult getAccessToken(@RequestParam Map<String, String> parameters);

}
